import { defHttp } from "@/utils/http";

// ERP 给药途径API
export const drugUsageRouteApi = {
	// 获得给药途径分页
	drugUsageRouteList: async (params: any) => {
		return await defHttp.get({ url: `/whs/drug-usage-route/page`, params });
	},
	// 新增给药途径
	drugUsageRouteCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/drug-usage-route/create`, data });
	},

	// 修改给药途径
	drugUsageRouteUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/drug-usage-route/update`, data });
	},

	// 删除给药途径
	drugUsageRouteDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/drug-usage-route/delete?id=` + id });
	}
};
